package cn.itsource.hrm.exception;

//错误码抽取
public enum ErrorCode {

    TENANT_NAME_NOTNULL("公司名不可为空",100),
    TENANT_NAME_DOUBLE("公司名不可重复",101),
    EMAIL_FORMAT_ERROR("邮箱格式不可正确",102);

    private final String msg;
    private final int code;

    ErrorCode(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg+"["+code+"]";
    }

    public int getCode() {
        return code;
    }
}
